package com.pj.wisdomlogistics.ui.activity;

import android.content.Intent;
import android.view.View;

import com.pj.wisdomlogistics.R;
import com.pj.wisdomlogistics.cons.Cons;
import com.pj.wisdomlogistics.other.EventCenter;
import com.pj.wisdomlogistics.utils.ActivityManagerUtil;

import butterknife.OnClick;

public class BusinessCheckActivity extends BaseActivity {

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }

    @Override
    public int getContentView() {
        return R.layout.activity_business_check;
    }

    @Override
    public boolean isApplyEventBus() {
        return false;
    }

    @Override
    public boolean isApplyButterKnife() {
        return true;
    }

    @Override
    public void onEventCome(EventCenter eventCenter) {

    }


    @OnClick({R.id.iv_back, R.id.tv_hys, R.id.tv_car, R.id.tv_repair, R.id.tv_meal})
    public void onViewClicked(View view) {
        Intent mIntent = new Intent(this , BusinessListActivity.class);
        switch (view.getId()) {
            case R.id.iv_back:
                ActivityManagerUtil.create().finishActivity();
                break;
            case R.id.tv_hys:
                mIntent.putExtra(Cons.Business.BUSINESS , 1);
                startActivity(mIntent);
                break;
            case R.id.tv_car:
                mIntent.putExtra(Cons.Business.BUSINESS , 2);
                startActivity(mIntent);
                break;
            case R.id.tv_repair:
                mIntent.putExtra(Cons.Business.BUSINESS , 3);
                startActivity(mIntent);
                break;
            case R.id.tv_meal:
                mIntent.putExtra(Cons.Business.BUSINESS , 4);
                startActivity(mIntent);
                break;
        }
    }
}
